package com.sr.demo.exception;


import com.sr.demo.response.NuoErrorStatus;

/**
 * 异常返回类
 * @Author: liushuai
 * @Date: 2020/8/23 16:16
 *
 *
 **/
public class NuoException extends RuntimeException{
    private static final long serialVersionUID = -8716100844379461082L;
    public NuoException(NuoErrorStatus errorMessage) {
        super(errorMessage.toString());
    }

    public NuoException(Throwable cause, NuoErrorStatus errorMessage) {
        super(errorMessage.toString(), cause);
    }

    public NuoException(String errorStr){
        super(errorStr);
    }

}
